package org.spring.springboot.app.sys.role.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import java.util.List;

@ApiModel(description = "添加角色菜单")
public class RoleManageReqVO {

    @ApiModelProperty(value = "所属角色ID", hidden = false)
    @NotBlank(message="所属角色id不能为空")
    private String roleId;
    @ApiModelProperty(value = "被管理角色(数组)", hidden = false)
    private List<String> roles;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId == null ? null : roleId.trim();
    }

    public List<String> getRoles() {
        return roles;
    }

    public void setRoles(List<String> roles) {
        this.roles = roles;
    }
}